package com.topvision.elementanim.hualang;

import android.content.Context;
import android.widget.Toast;

/**
 * Author: lucy
 * Comment: //TODO
 * Date: 2017-09-28 17:15
 */

public class ToastUtils {
    private static Toast toast;
    public static void showToast(Context context, String text) {
        if (toast == null) {
            toast = Toast.makeText(context, text, Toast.LENGTH_SHORT);
        }
        toast.setText(text);
        toast.show();
    }
}
